package io.renren.modules.practice.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Builder;
import lombok.Data;

/**
 * 封装用户
 */
@Data
@TableName("student_submit_algorithm_practice")
public class StudentSubmitAlgorithmPracticeEntity {
    /**
     * 主键ID
     */
    private Integer id;

    /**
     * 学生用户ID
     */
    private Long studentId;

    /**
     * 用户ID
     */
    private Integer quizId;

    /**
     * 程序执行状态
     *     0 - Accepted,
     *     1 - Wrong Answer,
     *     2 - Compilation Error,
     *     3 - Runtime Error,
     *     4 - System Internal Error
     * @See PracticeAlgorithmSubmitStatusConstant
     */
    private Integer status;

    /**
     * 时空开销，若运行出错，直接设置成为 N/A
     */
    private String  timeConsumption;
    private String  spaceConsumption;

    /**
     * 正文，BASE64编码的用户代码
     */
    private String  submitBase64;
}
